﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<title>自动回复设置</title>
<link href="css/core.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script src="js/DD_belatedPNG.js"></script>
<script>DD_belatedPNG.fix('.t-l, .t-c, .t-r, .b-l, .b-c, .b-r, .m-l, .m-r');</script>
<![endif]-->

</head>

<script>

var urlName = "allItems";

function saveAutoReply(){

	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
		{
			alert ("Your browser is not support AJAX");
			return;
		} 
	
	var autoReplyText_input = document.getElementById("autoReplyText_input").value;
	
	var url="?action=saveAutoReply";
	var getData = "text="+escape(autoReplyText_input);
	
	try{
		xmlHttp.open("POST",url,true);
		xmlHttp.onreadystatechange  = stateChanged;
		xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		xmlHttp.send(getData); 
	}catch(exception){
		alert("Error occured during connection!");
	}
}


function stateChanged(){ 
	if (xmlHttp.readyState==4)
	{ 
		var output = xmlHttp.responseText;
		
		if(output==1){
			alert("保存成功");
		}else{
			alert("保存失败");
		}
	
	}
}

function GetXmlHttpObject(){
	var xmlHttp=null;
	try
		{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		}
	catch (e)
		{
		// Internet Explorer
		try
	{
		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
		catch (e)
	{
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
}
	return xmlHttp;
}
</script>

<body>
	<div class="wp">
		
    	<div class="header">
        	<div class="r">Hi，你好！liuliu8001<a href="logout.php">退出</a></div>
            <div class="logo">
            	<a href="authorize.php"><img src="images/logo.gif" /></a>
            </div>
        </div>        
        <div class="content cl">
        	<div class="sidebar l">
			

<!-- 圆角口九宫格 -->
<table cellspacing="0" cellpadding="0" class="win-table">
    <tbody>
        <tr><td colspan="3" class="cl o"><span class="t-l"></span><span class="t-c win-c"></span><span class="t-r"></span></td></tr>
        <tr>
            <td class="m-l"></td>
            <td class="m-c">
            <!-- 内容 -->
            <div class="win-ct">
            	<div class="title">路飞正品</div>
            	<ul class="menu">
                <li id="authorizePage"><a href="authorize.php">账户总览</a></li>
                <li id="allItemsPage"><a href="allItems.php">全部商品</a></li>
                <li id="createNewMessagePage"><a href="createNewMessage.php">专题制作<em>（原文链接）</em></a></li>
                <li id="autoReplyPage"><a href="autoReply.php">自动回复设置</a></li>
                <li><a href="http://mp.weixin.qq.com/" target="_blank">微信公众平台<em>（官方）</em></a></li>
                <li><a href="http://www.weidian.cc/blog/?cat=33" target="_blank">帮助文档</a></li>
                <li><a href="http://www.weidian.cc" target="_blank">微店官网</a></li>
				<li class="qqun"><img src="images/qq.gif" align="absmiddle" />微店用户群：<em>189034407</em></li>
                </ul>
                <div class="alicloud">云服务供应商：<img src="images/alicloud.gif" align="absmiddle" /></div>
            </div>
            <!-- /内容 -->
            </td>
            <td class="m-r"></td>
        </tr>
        <tr><td colspan="3" class="cl o"><span class="b-l"></span><span class="b-c win-c"></span><span class="b-r"></span></td></tr>
    </tbody>
</table>
<!-- /圆角口九宫格 -->


<script>

document.getElementById(urlName+"Page").className = "a";

</script>

          </div>
            
            <div class="main r">
<!-- 圆角口九宫格 -->
<table cellspacing="0" cellpadding="0" class="win-table">
    <tbody>
        <tr><td colspan="3" class="cl o"><span class="t-l"></span><span class="t-c win-c"></span><span class="t-r"></span></td></tr>
        <tr>
            <td class="m-l"></td>
            <td class="m-c">
            <!-- 内容 -->
            <div class="win-ct">
                <div class="title">自动回复设置</div>
                
                <div class="ctbox messages reply">
                     <div class="tit">
                     	<ul class="tab">
                        <li class="a">被添加自动回复</li>
                        </ul>
                     </div>
                     
                     <div class="autoReplay_ctn">
                     	<div class="editor">
                     	<textarea rows="23" cols="111" id="autoReplyText_input">Hello，亲！等你好久了耶~你已成为“路飞正品”的专享会员，我们将推送最新的活动给你，同时你也可以直接搜索店内的宝贝，更欢迎和我们说说话，聊聊天。

你可以直接输入关键词搜索店内的宝贝，比如“爆款”，然后就可以直接下单哦！很神奇有木有，微信也可以淘宝贝啦！

【单】：订单查询
【新】：最新上架
【热】：热门商品
【淘】：进入店铺
【助】：使用帮助</textarea>
               	       </div>
                        
                        <div class="action"><br /><a href="javascript:void(0)" onClick="saveAutoReply()"><img src="images/save_btn.gif" /></a>
                        </div>
                  </div>
                </div>
            </div>
            <!-- /内容 -->
            </td>
            <td class="m-r"></td>
        </tr>
        <tr><td colspan="3" class="cl o"><span class="b-l"></span><span class="b-c win-c"></span><span class="b-r"></span></td></tr>
    </tbody>
</table>
<!-- /圆角口九宫格 -->
            </div>
        </div>
        
		

        <div class="footer cl">
        	<p>
            <span class="l">
            <a target="_blank" href="http://weibo.com/u/3213825255" class="weibo">微博咨询</a>
            <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1690994161&site=qq&menu=yes" class="qq">QQ咨询</a>
            <a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid=%E6%88%91%E7%88%B1%E5%BE%AE%E5%BA%97&s=2" class="wangwang">旺旺咨询</a>
            </span>
            
            <span class="r">
            Copyright&copy; 2012 weidian.cc All Rights Reserved.
            </span>
            
            </p>
        </div>
         </div>
    
</body>
</html>
